public class ArrayCopy{
	public static void main(String[] args){
		int[] arr1 = {12,2,334};
		int[] arr2 = new int[]{arr1[0],arr1[1],arr1[2]};

		for(int i = 0; i < arr2.length; i++){
			System.out.printf("arr2[%d] = %d", i, arr2[i]);
		}

		arr2[0] = 100;//此时修改arr2中的数据，不会影响arr1中的数据
	}
}